using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BusinessPlatform.Core;
using BusinessPlatform.Core.BusinessObject;
using BusinessPlatform.Core.BusinessObject.Mapping;
using BusinessPlatform.Core.BusinesObjectType;

namespace BusinessPlatform.Test.BusinessPartner
{
    /// <summary>
    /// 业务伙伴-属性
    /// </summary>
    public class BusinessPartnerProperty : BusinessObjectBase, IBusinessPartnerProperty , IMasterDataLine
    {
        /// <summary>
        /// 业务伙伴-属性
        /// </summary>
        public override string TableName
        {
            get { return "BusinessPartnerProperties"; }
        }
        #region properties
        
        /// <summary>
        /// 行号
        /// </summary>
        [PropertyMapping(FieldName = "LineNum", DbType = typeof(Int32), IsUnionKey = true)]
        public System.Int32 LineNumber
        {
            get { return this.GetPropertyValue<System.Int32>("LineNumber"); }
            set { this.SetPropertyValue<System.Int32>("LineNumber", value); }
        }
        
        /// <summary>
        /// 顺序号
        /// </summary>
        [PropertyMapping(FieldName = "VisOrder", DbType = typeof(Int32))]
        public System.Int32 VisilbeOrder
        {
            get { return this.GetPropertyValue<System.Int32>("VisilbeOrder"); }
            set { this.SetPropertyValue<System.Int32>("VisilbeOrder", value); }
        }
        
        /// <summary>
        /// 对象
        /// </summary>
        [PropertyMapping(FieldName = "ObjType", DbType = typeof(String))]
        public System.String ObjectType
        {
            get { return this.GetPropertyValue<System.String>("ObjectType"); }
            set { this.SetPropertyValue<System.String>("ObjectType", value); }
        }
        
        /// <summary>
        /// 创建人
        /// </summary>
        [PropertyMapping(FieldName = "Creator", DbType = typeof(Int32))]
        public System.Int32 Creator
        {
            get { return this.GetPropertyValue<System.Int32>("Creator"); }
            set { this.SetPropertyValue<System.Int32>("Creator", value); }
        }
        
        /// <summary>
        /// 创建时间
        /// </summary>
        [PropertyMapping(FieldName = "CreateDate", DbType = typeof(DateTime))]
        public System.DateTime CreateDate
        {
            get { return this.GetPropertyValue<System.DateTime>("CreateDate"); }
            set { this.SetPropertyValue<System.DateTime>("CreateDate", value); }
        }
        
        /// <summary>
        /// 更新人
        /// </summary>
        [PropertyMapping(FieldName = "Updator", DbType = typeof(Int32))]
        public System.Int32 Updator
        {
            get { return this.GetPropertyValue<System.Int32>("Updator"); }
            set { this.SetPropertyValue<System.Int32>("Updator", value); }
        }
        
        /// <summary>
        /// 更新时间
        /// </summary>
        [PropertyMapping(FieldName = "UpdateDate", DbType = typeof(DateTime))]
        public System.DateTime UpdateDate
        {
            get { return this.GetPropertyValue<System.DateTime>("UpdateDate"); }
            set { this.SetPropertyValue<System.DateTime>("UpdateDate", value); }
        }
        
        /// <summary>
        /// 备注
        /// </summary>
        [PropertyMapping(FieldName = "Remarks", DbType = typeof(String))]
        public System.String Remarks
        {
            get { return this.GetPropertyValue<System.String>("Remarks"); }
            set { this.SetPropertyValue<System.String>("Remarks", value); }
        }
        
        /// <summary>
        /// 业务伙伴编码
        /// </summary>
        [PropertyMapping(FieldName = "CardCode", DbType = typeof(String), IsPrimary = true)]
        public System.String BusinessPartnerCode
        {
            get { return this.GetPropertyValue<System.String>("BusinessPartnerCode"); }
            set { this.SetPropertyValue<System.String>("BusinessPartnerCode", value); }
        }
        
        /// <summary>
        /// 属性编码
        /// </summary>
        [PropertyMapping(FieldName = "PropertyCode", DbType = typeof(String))]
        public System.String PropertyCode
        {
            get { return this.GetPropertyValue<System.String>("PropertyCode"); }
            set { this.SetPropertyValue<System.String>("PropertyCode", value); }
        }
        
        /// <summary>
        /// 属性名称
        /// </summary>
        [PropertyMapping(FieldName = "PropertyName", DbType = typeof(String))]
        public System.String PropertyName
        {
            get { return this.GetPropertyValue<System.String>("PropertyName"); }
            set { this.SetPropertyValue<System.String>("PropertyName", value); }
        }
        
        #endregion
        
        /// <summary>
        /// 业务伙伴-属性构造函数
        /// </summary>
        public BusinessPartnerProperty()
        {
            
        }
    }
}
